﻿//格式化后台传来的日期 例如：/Date(1426150002560)/
function formatDataGirdDateTime(value, row, index)
{
    if (value && value != undefined)
    {
        var dt = parseAjaxDate(value.toString());
        return dt.toLocaleString();
    }

    return value;
}

//将格式如/Date(1426150002560)/的字符串转换为日志格式
function parseAjaxDate(dateString)
{
    var tmp = "var dt = new " + dateString.replace(/\//g, '');
    eval(tmp);    
    return dt;
}

var msg = {
    tips: function (msg, eleID) {
        layer.tips(msg, eleID, {
            tips: [2, '#de0f18']
        });
    }
};